﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Quan-Ly-Bai-Viet.aspx.cs"
    Inherits="Hyunhdai_Saigon_Project.Quan_Ly_Bai_Viet" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="assets/styles/meovat.css" rel="stylesheet" type="text/css" />
    <link href="assets/styles/admin.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div id="wrapper" style="margin-top: 100px">
       <div style="margin: 0px; background-color:#dcd9d9">
            <img src="assets/images/add-icon.png" width="100px" height="80px" />
           <span style="font-size:40px; color:blue">  Thêm thông tin sản phẩm</span>
            <div id="exit">
                <p style="padding:10px 10px 0px 0px">
                    <asp:Button ID="Button1" runat="server" Text="Đăng Xuất" OnClick="DangXuat_Click" />
                </p>
                <p style="padding:10px 10px 0px 0px">
                    <asp:Button ID="Button2" runat="server" Text="Về Trang Quản Lí" OnClick="ThemSp_Click" /></p>
            </div>
        </div>
        <div class="cat">
            <asp:DropDownList ID="drlCat" runat="server" AutoPostBack="True">
                <asp:ListItem>Mẹo Vặt</asp:ListItem>
                <asp:ListItem Value="Khuyến Mãi"></asp:ListItem>
            </asp:DropDownList>
        </div>
      <div class="sanpham-noidung">
        <asp:DataList ID="dlCountry" runat="server" RepeatColumns="1" RepeatDirection="Horizontal">
            <ItemTemplate>
                <asp:Label ID="lblID" runat="server" Text='<%# Eval("id") %>' Visible="False"></asp:Label>
                <div id="mv-img-left" class="img">
                    <asp:Image ID="Image1" runat="server" Width="150px" Height="150px" 
                        ImageUrl='<%# Eval("img") %>' />
                </div>
                <div id="mv-content-right">
                    <div class="title">
                        <asp:Label ID="lblTitle" runat="server" Text='<%# Eval("title") %>'></asp:Label>
                    </div>
                    <div class="intro">
                       Ngày viết bài: <asp:Label ID="Label1" runat="server" Text='<%# Eval("date") %>'></asp:Label><br /> <br />
                        <asp:Label ID="lblIntro" runat="server" Text='<%# Eval("introtext") %>'></asp:Label>
                    </div>
                    <br />
                    <div class="showmore">
                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# createURLFromID((""+DataBinder.Eval (Container.DataItem, "id"))) %>'>Chỉnh Sửa</asp:HyperLink>
                    </div>
                </div>
                <div class="clr">
                </div>
                <div style="border-top-color: Blue; border-top-width: 1px; border-top-style: dashed">
                </div>
            </ItemTemplate>
        </asp:DataList>
        <asp:DataList ID="dlPaging" runat="server" OnItemCommand="dlPaging_ItemCommand" OnItemDataBound="dlPaging_ItemDataBound"
            RepeatDirection="Horizontal" CssClass="dlpagging">
            <ItemTemplate>
                <asp:LinkButton ID="lnkbtnPaging" runat="server" CommandArgument='<%# Eval("PageIndex") %>'
                    CommandName="lnkbtnPaging" Text='<%# Eval("PageText") %>'></asp:LinkButton>
            </ItemTemplate>
        </asp:DataList>
    </div>
        <div class="sp-footer">
            <asp:DropDownList ID="ddlPageSize" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged"
                Width="50px">
                <asp:ListItem Value="10"></asp:ListItem>
                <asp:ListItem Value="20"></asp:ListItem>
                <asp:ListItem Value="30"></asp:ListItem>
            </asp:DropDownList>
            <asp:LinkButton ID="lnkbtnPrevious" runat="server" OnClick="lnkbtnPrevious_Click">Trang Trước</asp:LinkButton>
            <asp:LinkButton ID="lnkbtnNext" runat="server" OnClick="lnkbtnNext_Click">Trang Sau</asp:LinkButton>
        </div>
    </div>
    </form>
</body>
</html>
